﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.TeamFoundation.Client;
using Microsoft.TeamFoundation.WorkItemTracking.Client;
using System.Diagnostics;
namespace YakShaver.Tests.DummyObjects
{
    public class ArchitechtCredentialProvider: ICredentialsProvider
    {
        #region ICredentialsProvider Members

        public System.Net.ICredentials GetCredentials(Uri uri, System.Net.ICredentials failedCredentials)
        {

            Debug.WriteLine("Get Credetnials URI: " + uri.ToString());
            Debug.WriteLine("Failed Credentials: " + failedCredentials.ToString());

            System.Net.NetworkCredential nCredential =
                new System.Net.NetworkCredential("Art", "P2ssw0rd");
            return nCredential;

        }

        public void NotifyCredentialsAuthenticated(Uri uri)
        {
            Debug.WriteLine("NotifyCredentialsAuthenticated Uri: " + uri.ToString());
        }

        #endregion
    }
    
    
}
